package cn.edu.gsau.info.models;

import cn.edu.gsau.info.vo.UploadFile;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jinjiang
 * @since 2022-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_keyan")
public class Keyan implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private Long tianbaoId;

    private String tianbaoName;

    private String projectName;

    private String zhuChiRen;

    /**
     * 单位：万元
     */
    private BigDecimal huoPiJingFei;

    /**
     * 单位：万元
     */
    private BigDecimal daoZhangJingFei;

    private Integer zongRenShu;

    private Integer meSort;

    private String lixiangDanWei;

    @JsonFormat(pattern = "YYYY-MM-dd" ,timezone = "GTM+8")
    private Date lixiangDate;

    private String createBy;

    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss" ,timezone = "GTM+8")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss" ,timezone = "GTM+8")
    private Date updateTime;

    private String status;

    private String node;

    private String manager;

    @TableLogic
    private Integer deleted;

    private String memo;

    @TableField(exist = false)
    private UploadFile[] fileList;
}
